<?php /* Smarty version Smarty-3.0.5, created on 2013-10-28 19:14:08
         compiled from "../Cursos/view\asignarCursoProfesor.tpl" */ ?>
<?php /*%%SmartyHeaderCode:26181526ea97095c788-32926527%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9f7ef6fef2a8000792b78d0df7b63dd4ba1d0bef' => 
    array (
      0 => '../Cursos/view\\asignarCursoProfesor.tpl',
      1 => 1382983591,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '26181526ea97095c788-32926527',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_paginate_prev')) include '../Resources/libs/SmartyPaginate/plugins\function.paginate_prev.php';
if (!is_callable('smarty_function_paginate_middle')) include '../Resources/libs/SmartyPaginate/plugins\function.paginate_middle.php';
if (!is_callable('smarty_function_paginate_next')) include '../Resources/libs/SmartyPaginate/plugins\function.paginate_next.php';
?>    <html>
    <head>
        <title>Online School</title>
        <meta charset="utf-8">
        <script src="../Resources/js/jquery.js"></script>
        <script src="../Resources/js/jquery_validate.js"></script>
        <script src="../Resources/js/CRUD_Cursos.js"></script>
    </head>
    <body>
        <header>
            <table>
                <tr>
                    <td>Usuario</td>
                    <td><input type="button" name="btnCerrarSesion" class="btnCerrarSesion" value="Cerrar Sesión" ></td>
                </tr>
            </table>
            
            <nav>
                <ul>
                    <li><a href="../Cursos/index1.php">Cursos</a></li>
                    <li><a href="../../Profesores/">Profesores</a></li>
                    <li><a href="index.php?wa=administrador">Administradores</a></li>
                    <li><a href="../Cursos/index.php">Asignar Curso a profesor</a></li>
                </ul>
            </nav>
        </header>

        <section>
            
            <table>
                <thead>
                    <tr>
                        <td><label for="txtBuscarMateria">Buscar curso por <span>Materia:</span></label></td>
                        <td><input type="text" name="txtBuscarMateria" id="txtBuscarMateria" value="" placeholder="nombre materia"></td>
                        <td><input type="button" name="btnBuscarCurso" id="btnBuscarCurso" value="Buscar"></td>
                    </tr>
                </thead>
                <tbody id="cursos">
                
                     <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['res']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('resultados')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['name'] = 'res';
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['res']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total']);
?>
                         <tr></tr>
                         <tr>
                             <td><label id="<?php echo $_smarty_tpl->getVariable('resultados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['res']['index']]['idCurso'];?>
"><?php echo $_smarty_tpl->getVariable('resultados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['res']['index']]['NombreCurso'];?>
</label></td>
                             <td><input type="text" class="txtProfesor"  placeholder="asignar profesor"></td>
                             <td></td>
                         </tr>
                     <?php endfor; endif; ?>
                     
                </tbody>
                
            </table>
                <div>
                    <p id="msgResultado"></p>
                    <input type="button" name="btnBuardarProfesores" id="btnBuardarProfesores" value="Asignar Profesores">
                    <br>
                    <?php echo smarty_function_paginate_prev(array(),$_smarty_tpl);?>
 <?php echo smarty_function_paginate_middle(array(),$_smarty_tpl);?>
 <?php echo smarty_function_paginate_next(array(),$_smarty_tpl);?>

                </div>
        </section>
        <footer>
            informacion de los cursos
        </footer>
    
    </body>

</html>